﻿#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QTimer>

class MyThread : public QThread
{
    Q_OBJECT
public:
    MyThread(QObject* parent = 0);
    ~MyThread();

signals:
    void sigImportRefresh(int iValue);
    void sigStart();

protected:
    //重新实现run函数，当MyThread开始start的时候就会调用该函数
    void run();

private:
    void startTimer();

private slots:
    void setValue();

private:
    QTimer *m_pTimer;
    int m_iValue = 0;
};

#endif // MYTHREAD_H
